package com.example.test.springdemo.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Arrays;

public class UserRole implements Serializable {

    @ApiModelProperty(value = "管理员用户ID",dataType = "Long")
    private Long userId;

    @ApiModelProperty(value = "角色ID",dataType = "Long")
    private Long[] roleId;

    private static final long serialVersionUID = 1L;

    public void setRoleId(Long[] roleId) {
        this.roleId = roleId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long[] getRoleId() {
        return roleId;
    }

    @Override
    public String toString() {
        return "UserRole{" +
                "userId=" + userId +
                ", roleId=" + Arrays.toString(roleId) +
                '}';
    }
}
